﻿@model IEnumerable<shop.SanPham>

<div class="span12">
    <div class="widget-box">
        <div class="widget-title">
            <span class="icon"><i class="icon-th"></i></span>
            <h5>Danh sách sản phẩm</h5>
        </div>
        <div class="widget-content">
            <table class="table table-bordered table-striped with-check">
                <thead>
                    <tr>
                        <th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" /></th>
                        <th>Tên sản phẩm</th>
                        <th>Hình Ảnh</th>
                        <th>Giá tiền</th>
                        <th>Chức năng</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr class="gradeU">
                            <td><input type="checkbox" /></td>
                            <td>@item.TenSP</td>
                            <td>
                                <img width="75" src="/images/sanpham/@item.HinhAnh" />
                            </td>
                            <td>@string.Format("{0:0,0 đ}", item.Gia)</td>
                            <td class="center">
                                <a class="btn btn-primary btn-mini">Sửa</a>
                                @* <a  class="delete-link btn btn-danger btn-mini" href="/sanpham/delete">Xóa</a>*@
                                @Html.ActionLink("Xóa", "Delete", new { id = item.ID }, new { @class = "delete-link btn btn-danger btn-mini" })
                                @* <a class="md-trigger btn btn-danger btn-mini"  data-modal="modal-15">3D Rotate In Left</a>*@

                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
